package com.future.serviceImpl;

import com.future.dto.ManagerDto;
import com.future.dto.ManagerForRoomDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.future.domain.Manager;
import com.future.mapper.ManagerMapper;
import com.future.service.ManagerService;
/**
 * @Auther: 田坑坑
 * @Date: 2022/6/20 14:01
 * @Description:  我题序等你回
 */
@Service
public class ManagerServiceImpl extends ServiceImpl<ManagerMapper, Manager> implements ManagerService{



    @Autowired
    ManagerMapper  managerMapper;

    @Override
    public List<ManagerDto> selectManagerDto(int id) {
        return this.managerMapper.selectManagerDto(id);
    }

    @Override
    public List<ManagerForRoomDto> selectManagerForMoom(int managerId) {
        return this.managerMapper.selectManagerForMoom(managerId);
    }

    @Override
    public int updateBatch(List<Manager> list) {
        return baseMapper.updateBatch(list);
    }
    @Override
    public int updateBatchSelective(List<Manager> list) {
        return baseMapper.updateBatchSelective(list);
    }
    @Override
    public int batchInsert(List<Manager> list) {
        return baseMapper.batchInsert(list);
    }
}
